import request from '@/utils/http'

/**
 * 获取用户角色列表
 * @param params
 */
export function getUserRoleList(params: any) {
	return request.get<Http.BaseResponse>({
		url: '/api/userRole',
		params: params
	})
}

/**
 * 设定用户角色
 * @param params
 */
export function settingUserRole(params: any) {
	return request.post<Http.BaseResponse>({
		url: '/api/userRole/setting',
		params: params,
		showSuccessMessage: true
	})
}